// API 地址配置文件
const API = {
  // 登录模块
  login: {
    smsSend: '/auth/login/sms',          // 发送短信验证码
    usernameLogin: '/auth/login/username', // 用户名登录
    smsLogin: '/auth/verify/sms',         // 短信验证码登录
    wechatLogin: '/auth/login/wechat',
    logout: '/auth/logout',     // 退出登录
    refresh: '/auth/refresh'     // 刷新token
  },
  
  // 用户模块
  user: {
    referrer: '/user/list/referrer',
    self: '/user/self',
    profile: '/user/profile',       // 用户资料
    updateInfo: '/user/update',      // 更新用户信息
    avatar: '/user/avatar'          // 更新头像
  },
  // 选项模块
  option: {
    category: '/option/list/category'  
  },
  brand_model:{
    list: '/brand_model/list',
  },
  poster:{
    list_model: '/poster/list/model',
  },
  car:{
    list: '/car/list',
  },
  service:{
    car: '/service/list/car',
  },
  store:{
    user_id: '/store/user_id',
    id: '/store/id',
  },
  order:{
    create: '/order/create',
    upload_record: '/order/upload_record',
    list_user_id:'/order/list/user_id',
    id: '/order/id',
    pay: '/order/pay',
    update: '/order/update',
    status: '/order/update/status',
    statistics: '/order/statistics/user',
    wechat_pay: '/order/wechat_pay',
    check_pay_status: '/order/check_pay_status',
  },
  sale:{
    get_sale: '/sale/get_sale',
  }
}

export default API
